Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Printing to LPT1 directly
~Karl Prefanateretsi 5.Dec.03 09:37 PM a Web browser
Domino Designer 6.5 Windows 2000


Thanks for the feedback!

The way you propose is too easy. :) I actually found another way using the Windows print system. I like your way better though so I'll probably end up tweaking it to work through Notes natively.

Here's the code that I found also works:

Dim strMessage As String
strMessage = "test message"

' Create FileSystem Object and Windows Scripting Host Network Object
Dim objFS As Variant
Dim objPrinter As Variant
Set objFS = CreateObject ( "Scripting.FileSystemObject" )
Set objPrinter = objFS.CreateTextFile ( "LPT1:", True )
objPrinter.Write ( strMessage )
objPrinter.Close




Printing to LPT1 directly (~Karl Prefanate... 5.Dec.03)
. . RE: Printing to LPT1 directly (~Bill Quetfooch... 5.Dec.03)
. . . . RE: Printing to LPT1 directly (~Karl Prefanate... 5.Dec.03)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS